package net.awpspace.walkman;

import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

import net.awpspace.walkman.utils.BackStack;
import net.awpspace.walkman.utils.Loader;
import net.awpspace.walkman.view.Menu;

import com.sun.lwuit.Display;

/**
 * Main entry
 * 
 * @author Diep AwpSpace
 * 
 */
public class Main extends MIDlet {

	public Main() {
		Display.init(this);
		Loader.updateLibrary();
	}

	/**
	 * Application start point
	 */
	protected void startApp() throws MIDletStateChangeException {
		System.gc();
		BackStack.getInstance(this).forward(new Menu(true));
	}

	protected void destroyApp(boolean unconditional)
			throws MIDletStateChangeException {
	}

	protected void pauseApp() {
	}
}
